// samsting : this file is auto create.

#include "Ons/2015-10-20/OnsMessageGetByMsgIdResponse.h"

namespace aliyun { namespace Ons {

OnsMessageGetByMsgIdResponse::OnsMessageGetByMsgIdResponse() {
}

const string& OnsMessageGetByMsgIdResponse::Data::MessageProperty::GetName(void) const {
  return Name_;
}

const string& OnsMessageGetByMsgIdResponse::Data::MessageProperty::GetValue(void) const {
  return Value_;
}

const std::vector<OnsMessageGetByMsgIdResponse::Data::MessageProperty>& OnsMessageGetByMsgIdResponse::Data::GetPropertyList(void) const {
  return PropertyList_;
}

const string& OnsMessageGetByMsgIdResponse::Data::GetTopic(void) const {
  return Topic_;
}

int OnsMessageGetByMsgIdResponse::Data::GetFlag(void) const {
  return Flag_;
}

const string& OnsMessageGetByMsgIdResponse::Data::GetBody(void) const {
  return Body_;
}

int OnsMessageGetByMsgIdResponse::Data::GetQueueId(void) const {
  return QueueId_;
}

int OnsMessageGetByMsgIdResponse::Data::GetStoreSize(void) const {
  return StoreSize_;
}

int64 OnsMessageGetByMsgIdResponse::Data::GetQueueOffset(void) const {
  return QueueOffset_;
}

int OnsMessageGetByMsgIdResponse::Data::GetSysFlag(void) const {
  return SysFlag_;
}

int64 OnsMessageGetByMsgIdResponse::Data::GetBornTimestamp(void) const {
  return BornTimestamp_;
}

const string& OnsMessageGetByMsgIdResponse::Data::GetBornHost(void) const {
  return BornHost_;
}

int64 OnsMessageGetByMsgIdResponse::Data::GetStoreTimestamp(void) const {
  return StoreTimestamp_;
}

const string& OnsMessageGetByMsgIdResponse::Data::GetStoreHost(void) const {
  return StoreHost_;
}

const string& OnsMessageGetByMsgIdResponse::Data::GetMsgId(void) const {
  return MsgId_;
}

int64 OnsMessageGetByMsgIdResponse::Data::GetCommitLogOffset(void) const {
  return CommitLogOffset_;
}

int OnsMessageGetByMsgIdResponse::Data::GetBodyCRC(void) const {
  return BodyCRC_;
}

int OnsMessageGetByMsgIdResponse::Data::GetReconsumeTimes(void) const {
  return ReconsumeTimes_;
}

int64 OnsMessageGetByMsgIdResponse::Data::GetPreparedTransactionOffset(void) const {
  return PreparedTransactionOffset_;
}

const OnsMessageGetByMsgIdResponse::Data& OnsMessageGetByMsgIdResponse::GetData(void) const {
  return Data_;
}

const string& OnsMessageGetByMsgIdResponse::GetHelpUrl(void) const {
  return HelpUrl_;
}

const char* OnsMessageGetByMsgIdResponse::BaseKey(void) {
  return "OnsMessageGetByMsgIdResponse";
}

void OnsMessageGetByMsgIdResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  UnmarshallerString(HelpUrl_, response_map, "OnsMessageGetByMsgIdResponse.HelpUrl");
      int Data__PropertyList__length = 0;
      UnmarshallerInt(Data__PropertyList__length, response_map, "OnsMessageGetByMsgIdResponse.Data.PropertyList.Length");
      if(Data__PropertyList__length >= 0) {
        Data_.PropertyList_.resize(Data__PropertyList__length);
        for(int i2 = 0; i2 < Data__PropertyList__length; i2++) {
          UnmarshallerString(Data_.PropertyList_[i2].Name_, response_map, "OnsMessageGetByMsgIdResponse.Data.PropertyList["+string_ValueOfInt(i2)+"].Name");
          UnmarshallerString(Data_.PropertyList_[i2].Value_, response_map, "OnsMessageGetByMsgIdResponse.Data.PropertyList["+string_ValueOfInt(i2)+"].Value");
        } // for(int i2 = 0; i2 < Data__PropertyList__length; i2++) {
      } // if(Data__PropertyList__length >= 0) {

    UnmarshallerString(Data_.Topic_, response_map, "OnsMessageGetByMsgIdResponse.Data.Topic");
    UnmarshallerInt(Data_.Flag_, response_map, "OnsMessageGetByMsgIdResponse.Data.Flag");
    UnmarshallerString(Data_.Body_, response_map, "OnsMessageGetByMsgIdResponse.Data.Body");
    UnmarshallerInt(Data_.QueueId_, response_map, "OnsMessageGetByMsgIdResponse.Data.QueueId");
    UnmarshallerInt(Data_.StoreSize_, response_map, "OnsMessageGetByMsgIdResponse.Data.StoreSize");
    UnmarshallerInt64(Data_.QueueOffset_, response_map, "OnsMessageGetByMsgIdResponse.Data.QueueOffset");
    UnmarshallerInt(Data_.SysFlag_, response_map, "OnsMessageGetByMsgIdResponse.Data.SysFlag");
    UnmarshallerInt64(Data_.BornTimestamp_, response_map, "OnsMessageGetByMsgIdResponse.Data.BornTimestamp");
    UnmarshallerString(Data_.BornHost_, response_map, "OnsMessageGetByMsgIdResponse.Data.BornHost");
    UnmarshallerInt64(Data_.StoreTimestamp_, response_map, "OnsMessageGetByMsgIdResponse.Data.StoreTimestamp");
    UnmarshallerString(Data_.StoreHost_, response_map, "OnsMessageGetByMsgIdResponse.Data.StoreHost");
    UnmarshallerString(Data_.MsgId_, response_map, "OnsMessageGetByMsgIdResponse.Data.MsgId");
    UnmarshallerInt64(Data_.CommitLogOffset_, response_map, "OnsMessageGetByMsgIdResponse.Data.CommitLogOffset");
    UnmarshallerInt(Data_.BodyCRC_, response_map, "OnsMessageGetByMsgIdResponse.Data.BodyCRC");
    UnmarshallerInt(Data_.ReconsumeTimes_, response_map, "OnsMessageGetByMsgIdResponse.Data.ReconsumeTimes");
    UnmarshallerInt64(Data_.PreparedTransactionOffset_, response_map, "OnsMessageGetByMsgIdResponse.Data.PreparedTransactionOffset");
}


} } // namespace aliyun { namespace Ons {

// end of file 
